
import { get,post } from "../../utils/request"
import { LoginData,addtype } from "./type"
export const login = (data:LoginData) =>{
    return post('administrator/checkloginByCode',data)
}

//管理员列表
export const administratorlist = (data:object) =>{
    return get('administrator/list',data)
}
export const administratoradd= (data:addtype) =>{
    return post('administrator/add',data)
}

export const administratordelete= (id:number) =>{
    return get('administrator/delete',{id:id})
}

export const administratorrolelist= () =>{
    return get('administratorrole/list',{psize:100})
}